package ogdkp.providers;

import ogdkp.om.Player;

import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jface.viewers.ViewerFilter;

public class DKPFilter extends ViewerFilter {

	@Override
	public boolean select(final Viewer viewer, final Object parentElement, final Object element) {
		if (element instanceof Player) {
			return ((Player) element).isRaiding();
		}
		return true;
	}

}
